package com.dragon.modules.yuegou.model.points;

import com.dragon.modules.yuegou.entity.points.RulesEntity;
import com.dragon.modules.yuegou.enums.points.RulesStatus;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 小票兑积分规则表模型类
 * 
 * @author pbuilder generated
 * @date 2019-04-24 17:38:26
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class Rules extends RulesEntity {

	/**
	 * 构造一个空小票兑积分规则表模型对象
	 */
	public Rules(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个小票兑积分规则表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public Rules(RulesEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个小票兑积分规则表模型对象
	 * 
	 * @param other 其它对象
	 */
	public Rules(Rules other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置
	 * 
	 * @param id 
	 * @return 当前对象
	 */
    public Rules id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getBusdId() {
    	return busdId;
    }

    /**
	 * 设置商圈id
	 * 
	 * @param busdId 商圈id
	 * @return 当前对象
	 */
    public Rules busdId(String busdId) {
    	this.busdId = busdId;
    	return this;
    }

	@Override
	public Integer getNumCeiling() {
    	return numCeiling;
    }

    /**
	 * 设置次数限制
	 * 
	 * @param numCeiling 次数限制
	 * @return 当前对象
	 */
    public Rules numCeiling(Integer numCeiling) {
    	this.numCeiling = numCeiling;
    	return this;
    }

	@Override
	public Integer getPointCeiling() {
    	return pointCeiling;
    }

    /**
	 * 设置积分限制
	 * 
	 * @param pointCeiling 积分限制
	 * @return 当前对象
	 */
    public Rules pointCeiling(Integer pointCeiling) {
    	this.pointCeiling = pointCeiling;
    	return this;
    }

	@Override
	public BigDecimal getCouponMoney() {
    	return couponMoney;
    }

    /**
	 * 设置兑换停车券金额
	 * 
	 * @param couponMoney 兑换停车券金额
	 * @return 当前对象
	 */
    public Rules couponMoney(BigDecimal couponMoney) {
    	this.couponMoney = couponMoney;
    	return this;
    }

	@Override
	public String getRemark() {
    	return remark;
    }

    /**
	 * 设置温馨提示
	 * 
	 * @param remark 温馨提示
	 * @return 当前对象
	 */
    public Rules remark(String remark) {
    	this.remark = remark;
    	return this;
    }

	@Override
	public RulesStatus getStatus() {
    	return status;
    }

    /**
	 * 设置[枚举]状态：0-未激活-INACTIVE、1-已启用-ENABLED、2-禁用-DISABLED
	 * 
	 * @param status [枚举]状态：0-未激活-INACTIVE、1-已启用-ENABLED、2-禁用-DISABLED
	 * @return 当前对象
	 */
    public Rules status(RulesStatus status) {
    	this.status = status;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置
	 * 
	 * @param createdTime 
	 * @return 当前对象
	 */
    public Rules createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public Rules createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public Rules modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedBy 
	 * @return 当前对象
	 */
    public Rules modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置逻辑删除，1表示已删除,0表示未删除
	 * 
	 * @param del 逻辑删除，1表示已删除,0表示未删除
	 * @return 当前对象
	 */
    public Rules del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public Rules delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public Rules delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }
}
